/**
 * @author bipul_sinha
 * @version 1.0
 * @created 15th June, 2011.
 *
 * HomeController
 *
 * Copyright CES @ 2011
 * All Rights Reserved.
 * CONFIDENTIAL AND TRADE SECRET
 */
package com.ces.knacky.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ces.knacky.framework.controller.BaseController;

/**
 * It is the controller class for the rendering home page. This internally calls to the tiles attribute and 
 * then gives call to the main controller page called as 'baseLayout.jsp".
 * 
 * @author bsinha
 *
 */
@Controller
public class HomeController extends BaseController {

	/**
	 * Method is used to redirect it to the main landing page.
	 * 
	 * @return 	String
	 * 			Represents view of the page.
	 */
	@RequestMapping("/home.htm") 
	public String redirect() {
		return "home";		
	}
	
	@RequestMapping("/invalidUser.htm")
	public String showInvalidUserPage() {
		return "invalidUser";
	}
}
